package com.water.bs.service;

import com.water.bs.mapper.GiftManageMapper;
import com.water.bs.pojo.Gift;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GiftManageService {
    @Autowired
    private GiftManageMapper giftManageMapper;

    public List<Gift> queryAllGift(){
        return giftManageMapper.queryAllGift();

    }

    public List<Gift> queryNoPhotoGift(){
        return giftManageMapper.queryNoPhotoGift();
    }

    public int addGift(Map<String,Object> map){return giftManageMapper.addGift(map);}

    public int updateGift(Map<String,Object> map){
        return giftManageMapper.updateGift(map);
    }

    public int deleteGift(String id){
        return giftManageMapper.deleteGift(id);
    }

    public int saveGiftPhoto(Map<String,Object> map){
        return giftManageMapper.saveGiftPhoto(map);
    }

    public Gift getGiftPhoto(String id){
        return giftManageMapper.getGiftPhoto(id);
    }

    public List<Map<String,Object>>qryAllGiftHistory(){return giftManageMapper.qryAllGiftHistory();}

    public int saveGiftExpress(Map<String,Object> map){return giftManageMapper.saveGiftExpress(map);}

}
